## Makefile.am -- Process this file with automake to produce Makefile.in
## Copyright (C) 2002 James Su
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 2, or (at your option)
## any later version.
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with this program; if not, write to the Free Software
## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

MAINTAINERCLEANFILES	= Makefile.in
CLEANFILES		= libimbus.la *.bak

INCLUDES		= -I$(top_builddir)	\
			  -I$(top_builddir)/src	\
	    		  -I$(top_srcdir)	\
			  -I$(top_srcdir)/src	\
			  $(LTDLINCL)

imbusincludedir		= $(includedir)/imbus-1.0

noinst_HEADERS		= imbus_internal.h	\
			  im_internals.h	\
			  im_key_mappings.h	\
			  im_type_internal.h	\
			  im_value_impl.h

imbusinclude_HEADERS	= imbus.h		\
			  im_address.h		\
			  im_address_unix.h	\
			  im_array.h		\
			  im_attributes.h	\
			  im_base_types.h	\
			  im_byte_stream.h	\
			  im_component_info.h	\
			  im_connection.h	\
			  im_connection_unix.h	\
			  im_datalist.h		\
			  im_event.h		\
			  im_event_roles.h	\
			  im_event_types.h	\
			  im_hash.h		\
			  im_hotkeys.h		\
			  im_io_channel.h	\
			  im_io_unix.h		\
			  im_key_codes.h	\
			  im_list.h		\
			  im_lookup_table.h	\
			  im_macros.h		\
			  im_main.h		\
			  im_main_loop.h	\
			  im_main_loop_unix.h	\
			  im_memory.h		\
			  im_memory_chunk.h	\
			  im_module.h		\
			  im_object.h		\
			  im_object_array.h	\
			  im_object_queue.h	\
			  im_properties.h	\
			  im_quark.h		\
			  im_server.h		\
			  im_server_unix.h	\
			  im_slist.h		\
			  im_stream.h		\
			  im_string.h		\
			  im_text.h		\
			  im_text_stream.h	\
			  im_type.h		\
			  im_unicode.h		\
			  im_utilities.h	\
			  im_value.h		\
			  im_value_array.h

configexecincludedir	= $(libdir)/imbus-1.0/include

install-exec-local:	imbus_config.h
	$(mkinstalldirs) $(DESTDIR)$(configexecincludedir)
	file=$(DESTDIR)$(configexecincludedir)/imbus_config.h; \
	if test -r $$file && cmp -s imbus_config.h $$file; then :; \
	else $(INSTALL_DATA) imbus_config.h $$file; fi

uninstall-local:
	rm -f $(DESTDIR)$(configexecincludedir)/imbus_config.h

lib_LTLIBRARIES 	= libimbus-1.0.la

libimbus_1_0_la_SOURCES = im_address.c		\
			  im_address_unix.c	\
			  im_array.c		\
			  im_attributes.c	\
			  im_byte_stream.c	\
			  im_component_info.c	\
			  im_connection.c	\
			  im_connection_unix.c	\
			  im_datalist.c		\
			  im_event.c		\
			  im_event_roles.c	\
			  im_hash.c		\
			  im_hotkeys.c		\
			  im_internals.c	\
			  im_io_channel.c	\
			  im_io_unix.c		\
			  im_key_codes.c	\
			  im_list.c		\
			  im_lookup_table.c	\
			  im_main.c		\
			  im_main_loop.c	\
			  im_main_loop_unix.c	\
			  im_memory.c		\
			  im_memory_chunk.c	\
			  im_module.c		\
			  im_object.c		\
			  im_object_array.c	\
			  im_object_queue.c	\
			  im_properties.c	\
			  im_quark.c		\
			  im_server.c		\
			  im_server_unix.c	\
			  im_slist.c		\
			  im_stream.c		\
			  im_string.c		\
			  im_text.c		\
			  im_text_stream.c	\
			  im_type.c		\
			  im_unicode.c		\
			  im_utilities.c	\
			  im_value.c		\
			  im_value_array.c	\
			  im_value_impl.c

libimbus_1_0_la_LDFLAGS	= -version-info $(IMBUS_CURRENT):$(IMBUS_REVISION):$(IMBUS_AGE) \
			  -export-dynamic \
			  -rpath $(libdir) \
			  @LIBLTDL@ \
			  @LIBTOOL_EXPORT_OPTIONS@

